package com.dianban.service.impl;


import com.dianban.dao.UserMoneyLogDao;
import com.dianban.entity.UserMoneyLog;
import com.dianban.service.UserMoneyLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 用户业务实现层
 *
 */
@Service
@Transactional(readOnly = true)
public class UserMoneyLogServiceImpl implements UserMoneyLogService {

    @Autowired
    private UserMoneyLogDao userMoneyLogDao;

    @Override
    @Transactional(readOnly = false)
    public int insert(UserMoneyLog userMoneyLog) {
        userMoneyLog.setCreatetime(System.currentTimeMillis()/1000);
        return userMoneyLogDao.insert(userMoneyLog);
    }


}
